home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 4 / The Arsenal Files 4 (Arsenal Computer).ISO / ham / sattrk31.tgz / sattrack-3.1.tar / SatTrack / src / include / satprop.h < prev    next >
C/C++ Source or Header  |  1995-03-16  |  5KB  |  105 lines

  1. /******************************************************************************/
  2. /*                                                                            */
  3. /*  Title       : satprop.h                                                   */
  4. /*  Author      : Manfred Bester                                              */
  5. /*  Date        : 06Dec93                                                     */
  6. /*  Last change : 15Mar95                                                     */
  7. /*                                                                            */
  8. /*  Synopsis    : Definitions of constants for 'satprop.c'                    */
  9. /*                                                                            */
  10. /*                                                                            */
  11. /*  SatTrack is Copyright (c) 1992, 1993, 1994, 1995 by Manfred Bester.       */
  12. /*  All Rights Reserved.                                                      */
  13. /*                                                                            */
  14. /*  Permission to use, copy, and distribute SatTrack and its documentation    */
  15. /*  in its entirety for educational, research and non-profit purposes,        */
  16. /*  without fee, and without a written agreement is hereby granted, provided  */
  17. /*  that the above copyright notice and the following three paragraphs appear */
  18. /*  in all copies. SatTrack may be modified for personal purposes, but        */
  19. /*  modified versions may NOT be distributed without prior consent of the     */
  20. /*  author.                                                                   */
  21. /*                                                                            */
  22. /*  Permission to incorporate this software into commercial products may be   */
  23. /*  obtained from the author, Dr. Manfred Bester, 1636 M. L. King Jr. Way,    */
  24. /*  Berkeley, CA 94709, USA. Note that distributing SatTrack 'bundled' in     */
  25. /*  with ANY product is considered to be a 'commercial purpose'.              */
  26. /*                                                                            */
  27. /*  IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, */
  28. /*  SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF   */
  29. /*  THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED  */
  30. /*  OF THE POSSIBILITY OF SUCH DAMAGE.                                        */
  31. /*                                                                            */
  32. /*  THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT      */
  33. /*  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A   */
  34. /*  PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"      */
  35. /*  BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, */
  36. /*  UPDATES, ENHANCEMENTS, OR MODIFICATIONS.                                  */
  37. /*                                                                            */
  38. /******************************************************************************/
  39.  
  40. #include "sattrack.h"
  41.  
  42. #define AE       1.0
  43. #define AE2      (AE * AE)
  44. #define AE3      (AE2 * AE)
  45. #define AE4      (AE2 * AE2)
  46.  
  47. #define KE       0.0743669161         /* (KEPLER/EARTHRADIUS)^3/2 * TWOPI/MPD */
  48.  
  49. #define Q0       120.0
  50. #define S0       78.0
  51.  
  52. #define Q0MS0T4  (pow(((Q0 - S0) * AE / EARTHRADIUS),4.0))
  53. #define S        (AE * (1.0 + S0 / EARTHRADIUS))
  54.  
  55. #define JJ2      1.0826158e-3                       /* J2 harmonic (WGS '72)  */
  56. #define JJ3      -0.253881e-5                       /* J3 harmonic (WGS '72)  */
  57. #define JJ4      -1.655970e-6                       /* J4 harmonic (WGS '72)  */
  58.  
  59. #define CK2      (0.5 * JJ2 * AE2)                  /* WGS '72 physical and   */
  60. #define CK4      (-0.375 * JJ4 * AE4)               /* geopotential constants */
  61.  
  62. #define A3OCK2   (-(JJ3) / CK2 * AE3)
  63.  
  64. #define ZNS      1.19459e-5                         /* SDP4 constants         */
  65. #define C1SS     2.9864797e-6
  66. #define ZES      0.01675
  67. #define ZNL      1.5835218e-4
  68. #define C1L      4.7968065e-7
  69. #define ZEL      0.05490
  70.  
  71. #define COSIS    0.91744867
  72. #define SINIS    0.39785416
  73. #define COSGS    0.1945905
  74. #define SINGS   -0.98088458
  75. #define COSHS    1.0
  76. #define SINHS    0.0
  77.  
  78. #define Q22      1.7891679e-6
  79. #define Q31      2.1460748e-6
  80. #define Q33      2.2123015e-7
  81.  
  82. #define G22      5.7686396
  83. #define G32      0.95240898
  84. #define G44      1.8014998
  85. #define G52      1.0508330
  86. #define G54      4.4108898
  87.  
  88. #define ROOT22   1.7891679e-6
  89. #define ROOT32   3.7393792e-7
  90. #define ROOT44   7.3636953e-9
  91. #define ROOT52   1.1428639e-7
  92. #define ROOT54   2.1765803e-9
  93.  
  94. #define THDT     4.3752691e-3
  95.  
  96. #define FASX2    0.13130908
  97. #define FASX4    2.88431980
  98. #define FASX6    0.37448087
  99.  
  100. /******************************************************************************/
  101. /*                                                                            */
  102. /* End of include file satprop.h                                              */
  103. /*                                                                            */
  104. /******************************************************************************/
  105.